<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>文件管理工具</title>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1:10/assets/css/Font-Awesome-3.2.1/css/font-awesome.min.css">
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1:10/assets/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="css/serverFile.css">
		<link rel="stylesheet" type="text/css" href="css/zTreeStyle.css">
			
		<script type="text/javascript" src="http://127.0.0.1:10/assets/js/jquery.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1:10/assets/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1:10/assets/qdstd.js"></script>
		<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="js/jquery.ztree.core.js"></script>
		<script type="text/javascript" src="js/serverFile.js"></script>
		

		<SCRIPT type="text/javascript">

			//
		</SCRIPT>
	</head>

	<body>
		<section id="container">
			<header id="title">
				<span>文件服务列表：</span>
				<select id="container2">
					<option></option>
					<option value="bugzip">测试文档服务</option>
					<option value="developdoc">开发文档服务</option>
					<option value="sharefile">共享资料文档服务</option>
				</select>
			</header>
			<br />
			<br />
			<section id="datelist">
				<section id="middle">
					<p class="list">文件列表：</p>
					<div class="refer">
						<p>文件名称：</p>
						<input type="text" class="shuru" style="width: 150px;" />
						<input type="button" class="button" value="查询" />
					</div>
				</section>

				<br />
				<section id="data">
					<div class="zTreeDemoBackground left">
						<ul id="treeDemo" class="ztree"></ul>
					</div>
				</section>
			</section>
			<br />
			<br />

			<footer>
				<div id="dataname">
					<p>当前目录：</p>
					<input type="text" name="name" size="50" class="shuru" id="edit" />
				</div>
				<div id="button">
					<form action="./file_upload" id="form1" method="post" enctype="multipart/form-data">
						<input type="file" name="name" id="file" />
						<!--所打开的文件-->
						<input type="text" name="path" value="bugzip" id="file" />
						<input type="button" name="download" value="上传文件" class="button" onclick="GetFileUp()" />
						<!--提交表单需要分是否选择了文件，所以写了js函数-->
					</form>
					<form action="./file_download" method="post">
						<input type="hidden" name="name" value="" id="fileName" />
						<!--文件名  点击树状图时会把文件名存在value。提交表单时value就有zhi-->
						<input type="hidden" name="path" value="bugzip" />
						<!--文件路径-->
						<input type="submit" name="upload" class="button" value="下载" />
						<!--提交表单，就不需要写js函数了-->
					</form>

					<form action="./file_delete" method="get">
						<input type="hidden" name="name" value="" id="deleteFile" />
						<!--文件名  value为空，需要js来赋值-->
						<input type="hidden" name="path" value="bugzip" />
						<!--文件路径-->
						<input type="submit" name="delete" class="button" value="删除" />
					</form>
				</div>
			</footer>
		</section>
	</body>

</html>